<%@page import="com.neusoft.weixin.utils.MessageUtil"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<% String appPath = request.getContextPath();%>    
<!DOCTYPE html>
<html>
  <head>
    <title>菜单管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript">
  		var appPath = '${ctx}';
  	</script>
    <link rel="stylesheet" href="${ctx}/static/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css"/>
	<script type="text/javascript" src="${ctx}/static/ztree/js/jquery.ztree.all-3.5.min.js"></script>
	<script type="text/javascript" src="${ctx}/static/easyui/easyloader.js"></script>
	<script type="text/javascript" src="${ctx}/static/common/common.js"></script>
	<script type="text/javascript" src="${ctx}/static/common/jquery.extend.js"></script>
	<script type="text/javascript" src="${ctx}/views/console/menuMaintenance.js"></script>
  </head>
  <body>
  <br>
  <div class="row">
	  <div class="col-xs-3">
	  <div id="mainContent" data-options="region:'west',split:true" title="菜单目录树" style="width:200px;">
				<div id="treeContainer">
			    	<div id="menuTree" class="ztree"></div>
	            </div>
	            <div id="rMenu" class="easyui-menu" style="width:120px;">
						<div id="addMenu" icon="icon-add">添加</div>					
						<div id="deleteMenu" icon="icon-remove">删除</div>
						<div id="upShiftMenu" icon="icon-reload">上移</div>
						<div id="downShiftMenu" icon="icon-reload">下移</div>
				</div>
			</div>
			<br><br>
			<div class="row  text-right">
				<button type="button" id="createCustomMenu" class="btn btn-primary">创建自定义菜单</button>
			</div>
	  </div>
	  <div class="col-xs-8">
	  <div class="alert alert-warning fade in">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
    <div id="alert"><strong>注意!</strong> 请完善菜单信息。</div>
  </div>
<form id="MenuInfoForm" class="form-horizontal" role="form">
<input type="hidden" name="MENU_ID" id="MENU_ID" />
<input type="hidden" name="PARENT_ID" id="PARENT_ID" />
  <div class="form-group">
    <label for="MENU_NUM" class="col-sm-2 control-label">菜单序号</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" name="MENU_NUM" id="MENU_NUM" placeholder="菜单序号" required>
    </div>
    <label for="MENU_NAME" class="col-sm-2 control-label">菜单名称</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" name="MENU_NAME" id="MENU_NAME" placeholder="菜单名称" required>
    </div>
  </div>
  <div class="form-group">
    <label for="MENU_LOCATION" class="col-sm-2 control-label">菜单地址</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="MENU_LOCATION" id="MENU_LOCATION" placeholder="菜单地址" required>
    </div>
  </div>
  <div class="form-group">
    <label for="MENU_DESC" class="col-sm-2 control-label">菜单描述</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="MENU_DESC" id="MENU_DESC" placeholder="菜单描述" required>
    </div>
  </div>
  <div class="form-group">
    <label for="MENU_TYPE" class="col-sm-2 control-label">菜单类型</label>
    <div class="col-sm-10">
	    <div class="radio-inline">
		  <label>
		    <input type="radio" name="MENU_TYPE" value="0" id="normal_menu">
		    普通菜单
		  </label>
		</div>
		<div class="radio-inline">
		  <label>
		    <input type="radio" name="MENU_TYPE" value="1" id="custom_menu" >
		  自定义菜单
		  </label>
		</div>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10 text-right">
      <button type="button" id="save" class="btn btn-primary">保存</button>
    </div>
  </div>
</form>
	  </div>
  </div>
<script type="text/javascript">

$(document).ready(function(){
});

</script>
  </body>
</html>